package com.xjrsoft.common.config;

import cn.jpush.api.JPushClient;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class JPushConfig {
    @Value("${xjrsoft.global-config.jpush.masterSecret}")
    private  String masterSecret;

    @Value("${xjrsoft.global-config.jpush.appKey}")
    private   String appKey;



    public JPushClient getJPushClient(){
        return new JPushClient(masterSecret, appKey);
    }
}

